import * as ajax from "../../common/ajax";

export const get = studentID => ajax.get("/admin/student/" + studentID);

export const create = entity => ajax.post("/admin/student", entity);

export const deleteItem = studentID =>
  ajax.pureDelete("/admin/student/" + studentID);

export const update = entity => ajax.put("/admin/student", entity);

export const getPageCount = () => ajax.get("/admin/student/page/count");

export const studentInfo = index =>
  ajax.get("/admin/student/studentInfo/" + index);
export const getPageCountByStudentId = username =>
  ajax.get("/admin/student/getPageCountByStudentId/" + username);

export const listName = () => ajax.pureGet("/admin/student/names");

export const pageSize = 10;
